import request from '@/utils/request'

// 获取身份信息
export function getAuthenticationInfo(id) {
    return request({
        url: `/api/Systems/InterfaceAuthentication/${id}`,
        method: 'GET'
    })
}

// 获取身份信息列表
export function getAuthenticationList(data) {
    return request({
        url: `/api/Systems/InterfaceAuthentication`,
        method: 'GET',
        data
    })
}

// 添加身份信息
export function createAuthentication(data) {
    return request({
        url: '/api/Systems/InterfaceAuthentication',
        method: 'POST',
        data
    })
}

// 更新身份信息
export function updateAuthentication(data) {
    return request({
        url: `/api/Systems/InterfaceAuthentication/${data.id}`,
        method: 'PUT',
        data
    })
}

// 批量删除身份信息
export function delAuthenticationBatch(data) {
    return request({
        url: `/api/Systems/InterfaceAuthentication/BatchRemove`,
        method: 'POST',
        data
    })
}
// 删除身份信息
export function delAuthentication(id) {
    return request({
        url: `/api/Systems/InterfaceAuthentication/${id}`,
        method: 'DELETE'
    })
}
// 获取所有身份信息
export function getAuthenticationAll() {
    return request({
        url: `/api/Systems/InterfaceAuthentication/All`,
        method: 'GET'
    })
}